package Dao;

import pojo.Student;

import java.io.File;
import java.io.IOException;

/**
 * @author zxs
 * @create 2021-03-25 20:42
 */
public class StudentDaoImpl implements StudentDao {
    public boolean addStudent(Student student) {
        File file = new File("E:/" + student.getId() + ".txt");
        try {
            file.createNewFile();
        } catch (IOException e) {
            return false;
        }
        return true;
    }
}
